Page({
  onLoad () { 
    this.showAnnounceList()
  },
  data: {
    announceList:[]
  },
  // 公告列表
  async showAnnounceList () { 
    const res = await wx.http.get('/announcement')
    if (res.code !== 10000) return wx.utils.toast()
    this.setData({
      announceList : res.data
    })
  }
})
